﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Mammoth.Services;
using Mammoth.ViewModels;

namespace Mammoth.Views
{
    /// <summary>
    /// Interaction logic for EventList.xaml
    /// </summary>
    public partial class EventList : UserControl
    {
        public EventList(IViewModelFactory vmFactory)
        {
            InitializeComponent();
            var d = App.Current.Windows.OfType<MainWindow>().First();
            DataContext = vmFactory.GetViewModel<EventListViewModel>(d);
        }
    }
}
